import request from '@/utils/request'

// 查询会议类型字典树选择列表
export function listMeetingContent(query) {
  return request({
    url: `/spspublic/meetingContent/list?ctFunNo=${query}`,
    method: 'get',
    // params: query
  })
}
//  根据配置好的会议内容进行构建会议内容树
export function meetingContentBuss(query) {
  return request({
    url: `/spspublic/meetingContent/bussFunNoList?ctFunNo=${query}`,
    method: 'get',
  })
}
// 查询会议内容配置列表
export function listFunNoMeetingContent(query) {
  return request({
    url: '/spspublic/meetingContent/listFunNo',
    method: 'get',
    params: query
  })
}

// 查询会议内容配置详细
export function getMeetingContent(ctId) {
  return request({
    url: '/spspublic/meetingContent/' + ctId,
    method: 'get'
  })
}

// 新增会议内容配置
export function addMeetingContent(data) {
  return request({
    url: '/spspublic/meetingContent',
    method: 'post',
    data: data
  })
}

// 修改会议内容配置
export function updateMeetingContent(data) {
  return request({
    url: '/spspublic/meetingContent/edit',
    method: 'post',
    data: data
  })
}

// 删除会议内容配置
export function delMeetingContent(ctId) {
  return request({
    url: '/spspublic/meetingContent/delete/' + ctId,
    method: 'post'
  })
}

// 导出会议内容配置
export function exportMeetingContent(query) {
  return request({
    url: '/spspublic/meetingContent/export',
    method: 'get',
    params: query
  })
}



